package com.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Timestamp;

/**
 * 绩效表数据层
 *
 * @author z 'y
 */
@Mapper
public interface PerformanceMapper {
    /**
     * 添加员工绩效表现
     *
     * @param employeeId       the employee id
     * @param performance      the performance
     * @param currentTimestamp the current timestamp
     * @return the int
     */
    @Insert("insert into performance(employeeId,performanceDate,performanceLevelName) values (#{param1},#{param3},#{param2})")
    int addPerformance(long employeeId, String performance, Timestamp currentTimestamp);
}
